cssnumbervalue: Remove gtk_css_number_value_get_unit()
authorBenjamin Otte <otte@redhat.com>
Fri, 12 Feb 2016 03:40:35 +0000 (04:40 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 13 Feb 2016 03:49:07 +0000 (04:49 +0100)
commite2d966eda52ed8833ebdafdc7d6d43284a503453
tree4aa0b17ebc0bb016d20f7273898a33e3c46c2ec2
parent7b301fcece6a9f2a18afc2e5e2169da9b6545bbf
cssnumbervalue: Remove gtk_css_number_value_get_unit()

This is in preparation for calc(), as calc(50% - 5px) is valid CSS
but has 2 units. Instead, add a function to query a value's dimension
(so we can differentiate lengths from numbers) and add a function to
query if the value contains percentages.
gtk/gtkcssimageradial.c
gtk/gtkcssnumbervalue.c
gtk/gtkcssnumbervalueprivate.h
gtk/gtkcssshorthandpropertyimpl.c
gtk/gtkcsstypes.c
gtk/gtkcsstypesprivate.h
gtk/gtkrenderborder.c